package com.pktechan.api.service;

import com.pktechan.api.base.BaseService;
import com.pktechan.api.entity.ShopCart;
import com.pktechan.api.vo.ShopCartVO;

import java.util.List;

public interface ShopCartService extends BaseService<ShopCart> {
    /**
     * 根据购物车ID集合查询
     * @param shopCartIdList
     * @return
     */
    List<ShopCartVO> getShopCartByIds(List<Integer> shopCartIdList);

    /**
     * 获取购物车列表
     * @param shopCart
     * @return
     */
    List<ShopCartVO> getShopCartList(ShopCart shopCart);

    /**
     * 添加购物车,新增或者编辑
     * @param shopCart
     */
    void saveOrUpdate(ShopCart shopCart);
}
